<?php 
foreach($allys as $ally) { 
    echo "{$ally->id}|+|{$ally->name}|*|";
} ?>
